<%-- 
    Document   : index
    Created on : 4/11/2013, 06:34:12 PM
    Author     : Ari Mendez
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean class="clases.ControlDatos" scope="session" id="cdatos"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Banca Online</title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="styles.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>

       <%
           String usuario=request.getParameter("usuario");
           String passw=request.getParameter("passw");
           boolean lg=cdatos.login(usuario, passw);
           if(lg)
               response.sendRedirect("menu.jsp");
           else
               response.sendRedirect("index.jsp");
       %>
    </body>
</html>

